@csrf
<div class="layui-form-item">
    <label for="encode" class="layui-form-label">角色编号</label>
    <div class="layui-input-block">
        <input type="text" name="encode" value="{{$role->encode??''}}" class="layui-input" lay-verify="required">
    </div>
</div>
<div class="layui-form-item">
    <label for="name" class="layui-form-label">角色名称</label>
    <div class="layui-input-block">
        <input type="text" name="name" value="{{$role->name??''}}" class="layui-input" lay-verify="required">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="checkbox" name="is_public" title="公共" lay-skin="primary" {{$role->is_public=='1'?'checked':''}}
            value="1">
        <input type="checkbox" name="status" title="有效" lay-skin="primary" {{$role->status=='1'?'checked':''}}
            value="1">
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">角色描述</label>
    <div class="layui-input-block">
        <textarea name="description" id="" cols="30" rows="10"
            class="layui-textarea"> {{$role->description??''}} </textarea>
    </div>
</div>